#!/usr/bin/env bash
echo "开始启动 resource java程序。。。。master版本"
echo "复制jar包到/home/apps/jiesen-official"
rm -rf /home/apps/jiesen-official/jiesen-resource-1.0-SNAPSHOT.jar
cp /home/jenkins/root/workspace/resource-master/target/jiesen-resource-1.0-SNAPSHOT.jar /home/apps/jiesen-official/jiesen-resource-1.0-SNAPSHOT.jar

export BUILD_ID=dontKillMe
nohup java -Xms246m -Xmx500m -Dhudson.util.ProcessTree.disable=true -jar  /home/apps/jiesen-official/jiesen-resource-1.0-SNAPSHOT.jar >/home/apps/jiesen-official/jiesen-resource.log 2>&1 &
echo "启动完成 resource 。。。。master版本"
sleep 10s
